import request from '@/utils/request'

//注册接口
export const useRegisterService = ({username,password,repassword})=>{
  return request.post('/api/reg',{username,password,repassword}) 
}

//登录接口
export const userLoginService = ({username,password})=>{
  return request.post('/api/login',{username,password})
}

//获取用户基本信息
export const userGetInfoService = ()=> request.get('/my/userinfo')